package com.github.demo.circularDependency;

import com.github.jsoncat.annotation.ioc.Autowired;
import com.github.jsoncat.annotation.ioc.Component;

@Component(name = "CircularDependencyBImpl")
public class CircularDependencyBImpl implements CircularDependencyB {

    @Autowired
    private CircularDependencyC testC;


    @Autowired
    CircularDependencyA testA;

    @Override
    public CircularDependencyA getCircularDependencyA() {
        return testA;
    }

    @Override
    public String testB() {
        return testA.printA();
    }

    @Override
    public String printB() {
        return "CircularDependencyBImpl B";
    }
}
